package com.sumainfor.pc.market.controller.tenant;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.tenant.impl.TenRoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author Meng
 * @ClassName TenRoomController
 * @date 2020/1/2 16:52
 * @description: TODO
 */
@Controller
@RequestMapping("/tenRoom")
public class TenRoomController {


    @Autowired
    TenRoomService tenRoomService;

    /**
     * 租后主管修改密码发送类型
     * @param params
     * @return
     */
    @PostMapping("/updateMiMaType")
    @ResponseBody
    public JsonResult updateMiMaType(@RequestBody Map<String,Object> params){

         return tenRoomService.updateMiMaType(params);

    }
}
